package com.mmd.bean;

public enum EnvType {
    local("本地环境"),
    test("测试环境"),
    dev("集成环境"),
    idc("正式环境");

    private String envName;

    private EnvType(String envName) {
        this.envName = envName;
    }

    public static EnvType getEnv(String name) {
        EnvType[] statusEnums = values();
        EnvType[] var2 = statusEnums;
        int var3 = statusEnums.length;

        for(int var4 = 0; var4 < var3; ++var4) {
            EnvType statusEnum = var2[var4];
            if (statusEnum.name().equals(name)) {
                return statusEnum;
            }
        }

        return null;
    }

    public String getEnvName() {
        return this.envName;
    }
}
